package LIZI;
public class animal_Polymorphic_method_call {
        public static void main(String[] args) {
                System.out.println("---------多态方法调用---------");


                animal animal1 = new Dog();
                animal1.eat();

                animal animal2 = new Cat();
                animal2.eat();


                Dog dog = (Dog) animal1;
                dog.lookDoor();
                dog.eat();
        }
}



